import moment from "moment";
import { Schema } from 'mongoose';
import { dbConfig } from '../../config/db';

const { tables } = dbConfig;
const { loveImage } = tables;

export const loveImageSchema = new Schema({
  imgUrl: {
    type: String,
    default: '',
  },
  width: {
    type: String,
    default: ''
  },
  height: {
    type: String,
    default: '',
  },
  desc: {
    type: String,
    default: '',
  },
  userId: {
    type: String,
    default: '',
  },
  time: {
    type: String,
    default: moment(),
  },
}, {
  collection: loveImage
})